package com.jumi.microservice.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jumi.microservice.dto.reponse.api.JmFlowGoodResponse;
import com.jumi.microservice.dto.reponse.api.UserGoodFlowResponse;
import com.jumi.microservice.entity.JmFlowLog;
import com.jumi.microservice.mapper.JmFlowLogMapper;
import com.jumi.microservice.service.IJmFlowLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 店铺流量 服务实现类
 * </p>
 *
 * @author 要挑客户管理团队
 * @since 2020-09-14
 */
@Service
public class JmFlowLogServiceImpl extends ServiceImpl<JmFlowLogMapper, JmFlowLog> implements IJmFlowLogService {

    @Autowired
    JmFlowLogMapper mapper;

    @Override
    public Page getPage(Page page, Wrapper wrapper) {
        return mapper.getPage(page,wrapper);
    }

    @Override
    public Page getGoodBrowsePage(Page<JmFlowGoodResponse> jmFlowGoodResponsePage, QueryWrapper wrapper,String orderByType) {
        return mapper.getGoodBrowsePage(jmFlowGoodResponsePage,wrapper,orderByType);
    }

    @Override
    public Page getUserGoodFlowPage(Page<UserGoodFlowResponse> objectPage, QueryWrapper wrapper) {
        return mapper.getUserGoodFlowPage(objectPage,wrapper);
    }
}
